using UnityEngine;
using System.Collections.Generic;

public class BirdFactory : MonoBehaviour{
	
	public GameObject birdTemplate;

	public void CreateBird(BirdType type){
		GameObject bird =(GameObject) GameObject.Instantiate(birdTemplate);
		UISprite sprite = bird.GetComponentInChildren<UISprite>();
		sprite.spriteName = type.ToString();
		bird.transform.parent = transform;
		bird.transform.localScale = new Vector3(1f,1f,1f);
		bird.transform.localPosition = Vector3.zero;
		GameController.Instance.EnqueueBird(bird);
	}
	
	
}

public enum BirdType{
	ga,
	vit,
	ngan
}